package routers

import (
	"ssims/middleWare"

	"github.com/gin-gonic/gin"
)

func sysNoCheckRoleRouter(r *gin.RouterGroup) {
	r = r.Group("/apis")
	menuRouter(r)
	staffRouter(r)
	loginRouter(r)
	familyRouter(r)
	generRouter(r)
	peopleRouter(r)
	people1Router(r)
	commonRouter(r)
	eventRouter(r)
	relationRouter(r)
}

func InitRouter() *gin.Engine {
	r := gin.New()
	r.Use(middleWare.Cors())
	g := r.Group("/system")
	sysNoCheckRoleRouter(g)

	return r
}
